<template>
    <!-- 顶部导航栏 -->
    <div class="placeholder"></div>
    <van-nav-bar
        class="navigationBar"
        title="VV"
        @click-right="onClickRight"
    >
        <template #left>
            <div style="width: 120px;display: flex;align-items: center;">
                <img src="../../../assets/gxjy-logo.png" alt="" style="width: 100%;">
            </div>
        </template>
        <template #right>
            <van-icon
                color="black"
                name="plus"
                size="20"/>
        </template>
    </van-nav-bar>
</template>

<script setup lang="ts">

import {
  useRouter
} from "vue-router";

// 实例化路由
const router = useRouter()

const onClickRight = ()=>{
  router.push({
    name:"search"
  })
}
</script>

<style scoped lang="less">
.placeholder {
    height: 46px;
}

.navigationBar {
    width: 100%;
    position: fixed;
    top: 0;
}

</style>